memory hotadd 4/7: Setup frametable for hot-added memory
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 11 Dec 2009 08:56:04 +0000 (08:56 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 11 Dec 2009 08:56:04 +0000 (08:56 +0000)
commit31468298412d7769a7263c2c471aaddb15783ae6
tree51ba99c90705db4e6b00e0eaba086b2ac221b84f
parentcee463f565cade67b4e33e137932a5a36e21e964
memory hotadd 4/7: Setup frametable for hot-added memory

We can't use alloc_boot_pages for memory hot-add, so change it to use
the pages range passed in.

One changes need notice is, when memory hotplug needed, we have to
setup initial frametable as pdx index (i.e. the pdx_gorund_valid)
aligned, to make sure mfn_valid() still works after the max_page is
not maximum anymore.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
xen/arch/x86/mm.c
xen/arch/x86/setup.c
xen/arch/x86/x86_64/mm.c
xen/include/asm-x86/page.h